#include "qsort.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main() {
	int scores[] = {543, 323, 32, 554, 11, 3, 112};
	int i;
	qsort(scores, 7, sizeof(int), compare_scores_desc);
	puts("There are the scores in order:");
	for(i = 0; i < 7; i++) {
		printf("Score = %i\n", scores[i]);
	}
	char *names[] = {"Karen", "Mark", "Brett", "Molly"};
	qsort(names, 4, sizeof(char*), compare_names);
	puts("There are the names in ordre:");
	for(i = 0; i < 4; i++) {
		printf("%s\n", names[i]);
	}
	return 0;
}

